package com.zztl.infiniteBand.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.zztl.infiniteBand.R
import com.zztl.infiniteBand.util.UiUtils

/**
 * @desc
 * @auth ${user}
 * @time 2018/6/13  20:02
 */
class AddressAdapter(layoutResId: Int, data: List<String>?) : BaseQuickAdapter<String, BaseViewHolder>(layoutResId, data) {

    override fun convert(helper: BaseViewHolder, item: String) {
        helper.setText(R.id.tv_address_name, UiUtils.getString(R.string.钱包地址) + (data.indexOf(item)+1))
        helper.setText(R.id.tv_address, item)
    }


}
